﻿using NewsEntity.Models;
using NewsSevicer.ResultClass;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace NewsSevicer.Interface
{
    public interface IOnlineUserService
    {
        OnlineUsers CreateUser(OnlineUsers user);
        OnlineUsers GetUserById(string userId);

        public RequestResult<loginInfoDto>   Login(OnlineUsers user);
        
        Task<IEnumerable<OnlineUsers>> GetAllUsersAsync();
        Task<OnlineUsers> UpdateUserAsync(OnlineUsers user);
        Task<bool> DeleteUserAsync(string userId);
    }
}
